<!-- toaster directive -->
<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
<!-- / toaster directive -->

<!-- 导航条 -->
<div class="bg-white bread-crumb">
    <ul class="breadcrumb b-a m-b-n-xs lter b-b wrapper-md">
        <li><a ui-sref="main.tpl.homePage"><i class="fa fa-home"></i> 首页</a></li>
        <li class="active" ng-bind="title"></li>
    </ul>
</div>

<!-- 加载提醒 -->
<div ng-show="loading" class="text-center m-t-md text-lg"><i class="fa fa-spin fa-spinner"></i> 数据加载中...</div>

<!-- 内容区域 -->
<div ng-hide="loading" class="wrapper-md content">
    <!-- 数据显示 -->
    <div class="wrapper-data">
        <div class="panel panel-default">
            <!-- 头部 -->
            <div class="panel-body">
                <!--<div class="w-lg">-->
                <form ng-submit="searchRe()" class="form-horizontal">
                    <div class="form-group">
                        <!--<div class="col-sm-2">-->
                            <!--<input type="text" class="form-control" ng-model="searchParams.email"-->
                                   <!--placeholder="邮箱地址" >-->
                            <!--&lt;!&ndash;<span class="input-group-btn">&ndash;&gt;-->
                            <!--&lt;!&ndash;<button class="btn btn-default" type="submit" style="height: 38px;"><i class="fa fa-search"></i></button>&ndash;&gt;-->
                            <!--</span>-->
                        <!--</div>-->


                        <div class="col-sm-2">
                            <input type="text" class="form-control" ng-model="searchParams.userId"
                                   placeholder="用户ID">
                            <!--<span class="input-group-btn">-->
                            <!--<button class="btn btn-default" type="submit" style="height: 38px;"><i class="fa fa-search"></i></button>-->
                            <!--</span>-->
                        </div>

                        <div class="col-sm-2">
                                <input type="text" placeholder="注册开始时间" ng-model="searchParams.regStartTime" class="form-control" id="regStartTime" onclick="laydate({istime: true, format: 'YYYY-MM-DD', start: laydate.now(0, 'YYYY-MM-DD')})"/>
                        </div>
                        <div class="col-sm-2">
                                <input type="text" placeholder="注册结束时间" ng-model="searchParams.regEndTime" class="form-control" id="regEndTime" onclick="laydate({istime: true, format: 'YYYY-MM-DD', start: laydate.now(0, 'YYYY-MM-DD')})"/>
                        </div>

                        <div class="col-sm-2">
                            <select class="form-control" ng-model="searchParams.status">
                                <option value="">--全部状态--</option>
                                <option value="1">正常</option>
                                <option value="2">异常</option>
                            </select>
                        </div>
                        <div class="col-sm-2">
                            <input type="text" class="form-control" ng-model="searchParams.mobile"
                                   placeholder="手机号码" />
                        </div>

                    </div>
                    <div class="form-group">
                        <div class="col-sm-2">
                            <input type="text" placeholder="注销开始时间" ng-model="searchParams.logOutStartTime"  class="form-control" id="logOutStartTime" onclick="laydate({istime: true, format: 'YYYY-MM-DD', start: laydate.now(0, 'YYYY-MM-DD')})"/>
                        </div>
                        <div class="col-sm-2">
                            <input type="text" placeholder="注销结束时间" ng-model="searchParams.logOutEndTime"  class="form-control" id="logOutEndTime" onclick="laydate({istime: true, format: 'YYYY-MM-DD', start: laydate.now(0, 'YYYY-MM-DD')})"/>
                        </div>
                            <div class="col-md-1">
                                <label class="col-sm-1 control-label"><button class="ifc-btn btn-primary"  ng-click="searchRe()">查 询</button></label>
                            </div>
                    </div>

                </form>
                <!--</div>-->
            </div>

            <!-- 数据表格 -->
            <div class="table-responsive">
                <table class="table table-striped b-t b-light text-center">
                    <thead>
                    <tr>
                        <th>编号</th>
                        <!--<th>邮箱</th>-->
                        <th>用户ID</th>
                        <th>联系方式</th>
                        <th>注册时间</th>
                        <th>注销时间</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="item in pageInfo.records">
                        <td>{{$index+1}}</td>
                        <!--<td class="v-middle">{{item.email}}</td>-->
                        <td class="v-middle">{{item.id}}</td>
                        <td class="v-middle">{{item.mobile}}</td>
                        <td class="v-middle">{{item.regTime | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
                        <td class="v-middle">{{item.logoutTime | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
                        <td class="v-middle">{{item.status}}</td>
                        <td class="v-middle">
                            <button type="button" ng-if="item.state!=3" ng-click="resetPassword(item.id)" class="btn btn-sm btn-default m-l-xs">
                                <i class="fa fa-edit m-r-xs text-sm"></i>重置密码</button>
                            <!--<button type="button" ng-if="item.state!=3" ui-sref="main.user.registerUser.editPassword({userId: item.id})" class="btn btn-sm btn-default m-l-xs">-->
                                <!--<i class="fa fa-edit m-r-xs text-sm"></i>修改密码</button>-->
                        </td>

                    </tr>
                    </tbody>
                </table>
            </div><!-- /.table-responsive -->

            <!-- 底部分页 -->
            <span data-ng-include=" 'src/tpl/pageInfo.html' "></span>
        </div><!-- /.panel -->
    </div><!-- /.wrapper-data -->

</div><!-- /.wrapper-md -->